﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetServerandDriveDetails" targetNamespace="http://tempuri.org/DataSetServerandDriveDetails.xsd" xmlns:mstns="http://tempuri.org/DataSetServerandDriveDetails.xsd" xmlns="http://tempuri.org/DataSetServerandDriveDetails.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=SEREENA-PC\SEREENASQL2008,2133;Initial Catalog=SQLServerHealthCheckDeploy;Integrated Security=True;Pooling=False" IsAppSettingsProperty="false" Modifier="Assembly" Name="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TableAdapterServerandDriveDetails" GeneratorDataComponentClassName="TableAdapterServerandDriveDetails" Name="ServerandDriveDetails" UserDataComponentName="TableAdapterServerandDriveDetails">
            <MainSource>
              <DbSource ConnectionRef="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Server.Name AS Server, Server.ProcessorCount, Server.ProcessorType, Server.MemoryInGB, ServerDrive.Drive, ServerDrive.FreeSpaceInGB, Server.OSVersion, 
                         ServerDrive.TotalSpaceInGB, CAST(CAST(ServerDrive.FreeSpaceInGB AS numeric(5, 2)) / CAST(ServerDrive.TotalSpaceInGB AS numeric(5, 2)) * 100 AS numeric(5, 2)) 
                         AS [Used]
FROM            Server INNER JOIN
                         ServerDrive ON Server.ServerID = ServerDrive.ServerID 
                        </CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Server" DataSetColumn="Server" />
              <Mapping SourceColumn="ProcessorCount" DataSetColumn="ProcessorCount" />
              <Mapping SourceColumn="ProcessorType" DataSetColumn="ProcessorType" />
              <Mapping SourceColumn="MemoryInGB" DataSetColumn="MemoryInGB" />
              <Mapping SourceColumn="Drive" DataSetColumn="Drive" />
              <Mapping SourceColumn="FreeSpaceInGB" DataSetColumn="FreeSpaceInGB" />
              <Mapping SourceColumn="OSVersion" DataSetColumn="OSVersion" />
              <Mapping SourceColumn="TotalSpaceInGB" DataSetColumn="TotalSpaceInGB" />
              <Mapping SourceColumn="Used" DataSetColumn="Used" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetServerandDriveDetails" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetServerandDriveDetails" msprop:Generator_UserDSName="DataSetServerandDriveDetails">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ServerandDriveDetails" msprop:Generator_TableClassName="ServerandDriveDetailsDataTable" msprop:Generator_TableVarName="tableServerandDriveDetails" msprop:Generator_TablePropName="ServerandDriveDetails" msprop:Generator_RowDeletingName="ServerandDriveDetailsRowDeleting" msprop:Generator_UserTableName="ServerandDriveDetails" msprop:Generator_RowChangingName="ServerandDriveDetailsRowChanging" msprop:Generator_RowEvHandlerName="ServerandDriveDetailsRowChangeEventHandler" msprop:Generator_RowDeletedName="ServerandDriveDetailsRowDeleted" msprop:Generator_RowEvArgName="ServerandDriveDetailsRowChangeEvent" msprop:Generator_RowChangedName="ServerandDriveDetailsRowChanged" msprop:Generator_RowClassName="ServerandDriveDetailsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Server" msprop:Generator_ColumnVarNameInTable="columnServer" msprop:Generator_ColumnPropNameInRow="Server" msprop:Generator_ColumnPropNameInTable="ServerColumn" msprop:Generator_UserColumnName="Server" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProcessorCount" msprop:Generator_ColumnVarNameInTable="columnProcessorCount" msprop:Generator_ColumnPropNameInRow="ProcessorCount" msprop:Generator_ColumnPropNameInTable="ProcessorCountColumn" msprop:Generator_UserColumnName="ProcessorCount" type="xs:int" minOccurs="0" />
              <xs:element name="ProcessorType" msprop:Generator_ColumnVarNameInTable="columnProcessorType" msprop:Generator_ColumnPropNameInRow="ProcessorType" msprop:Generator_ColumnPropNameInTable="ProcessorTypeColumn" msprop:Generator_UserColumnName="ProcessorType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MemoryInGB" msprop:Generator_ColumnVarNameInTable="columnMemoryInGB" msprop:Generator_ColumnPropNameInRow="MemoryInGB" msprop:Generator_ColumnPropNameInTable="MemoryInGBColumn" msprop:Generator_UserColumnName="MemoryInGB" type="xs:int" minOccurs="0" />
              <xs:element name="Drive" msprop:Generator_ColumnVarNameInTable="columnDrive" msprop:Generator_ColumnPropNameInRow="Drive" msprop:Generator_ColumnPropNameInTable="DriveColumn" msprop:Generator_UserColumnName="Drive">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FreeSpaceInGB" msprop:Generator_ColumnVarNameInTable="columnFreeSpaceInGB" msprop:Generator_ColumnPropNameInRow="FreeSpaceInGB" msprop:Generator_ColumnPropNameInTable="FreeSpaceInGBColumn" msprop:Generator_UserColumnName="FreeSpaceInGB" type="xs:decimal" minOccurs="0" />
              <xs:element name="OSVersion" msprop:Generator_ColumnVarNameInTable="columnOSVersion" msprop:Generator_ColumnPropNameInRow="OSVersion" msprop:Generator_ColumnPropNameInTable="OSVersionColumn" msprop:Generator_UserColumnName="OSVersion" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalSpaceInGB" msprop:Generator_ColumnVarNameInTable="columnTotalSpaceInGB" msprop:Generator_ColumnPropNameInRow="TotalSpaceInGB" msprop:Generator_ColumnPropNameInTable="TotalSpaceInGBColumn" msprop:Generator_UserColumnName="TotalSpaceInGB" type="xs:decimal" minOccurs="0" />
              <xs:element name="Used" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnUsed" msprop:Generator_ColumnPropNameInRow="Used" msprop:Generator_ColumnPropNameInTable="UsedColumn" msprop:Generator_UserColumnName="Used" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>